﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace muyu_monitor_plugin
{
    public class MuyuLogger
    {
        private Action<string> logUpdateCallback;

        public MuyuLogger(Action<string> updateCallback)
        {
            logUpdateCallback = updateCallback;
        }

        // 添加新日志的Log方法
        public void Log(string message)
        {
            // 添加日志条目
            logUpdateCallback?.Invoke(message);
        }
    }
}
